package com.eva.statDemo.stat;

import android.content.Context;

/**
 * Created by Jiangjia on 2015/9/15.
 */
public class StatHelper {

    private static WorkerExecutor sExecutor;

    public static WorkerExecutor getExecutor(Context context) {
        if(sExecutor == null) {
            sExecutor = new WorkerExecutor(context);
        }
        return sExecutor;
    }

    public static void bind(Context context) {
        WorkerExecutor executor = getExecutor(context);
        executor.startMainLoop();
    }

}
